/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mantechhelpdesk.entity;

import java.io.Serializable;

/**
 *
 * @author DinhThang
 */
public class Roles implements Cloneable, Serializable  {
   /** 
     * Persistent Instance variables. This data is directly 
     * mapped to the columns of database table.
     */
    private int roleID;
    private String roleName;
    private String description;



    /** 
     * Constructors. DaoGen generates two constructors by default.
     * The first one takes no arguments and provides the most simple
     * way to create object instance. The another one takes one
     * argument, which is the primary key of the corresponding table.
     */

    public Roles () {

    }

    public Roles (int RoleIDIn) {

          this.roleID = RoleIDIn;

    }


    /** 
     * Get- and Set-methods for persistent variables. The default
     * behaviour does not make any checks against malformed data,
     * so these might require some manual additions.
     */

    public int getRoleID() {
          return this.roleID;
    }
    public void setRoleID(int RoleIDIn) {
          this.roleID = RoleIDIn;
    }

    public String getRoleName() {
          return this.roleName;
    }
    public void setRoleName(String RoleNameIn) {
          this.roleName = RoleNameIn;
    }

    public String getDescription() {
          return this.description;
    }
    public void setDescription(String DescriptionIn) {
          this.description = DescriptionIn;
    }



    /** 
     * setAll allows to set all persistent variables in one method call.
     * This is useful, when all data is available and it is needed to 
     * set the initial state of this object. Note that this method will
     * directly modify instance variales, without going trough the 
     * individual set-methods.
     */

    public void setAll(int RoleIDIn,
          String RoleNameIn,
          String DescriptionIn) {
          this.roleID = RoleIDIn;
          this.roleName = RoleNameIn;
          this.description = DescriptionIn;
    }
    public Roles(int RoleIDIn,
          String RoleNameIn,
          String DescriptionIn) {
          this.roleID = RoleIDIn;
          this.roleName = RoleNameIn;
          this.description = DescriptionIn;
    }


}
